﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PayTypeTree.aspx.cs" Inherits="PayTypeTree" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head >
    <title></title>
    <link href="App_Themes/DefaultSkin/Tree.css"  rel="Stylesheet" type="text/css" />
    <script src="JS/jquery.min.js" language="javascript"></script>
    <script>
       $(document).ready(function(){
       
          // $("a").attr("href","#");
       
           $("a").bind("click",function(e){
            var obj = e.target.parentNode;
            
            //如果点击展开按钮，该值为null
            if( obj.getElementsByTagName('input')[0] == null )
            {
              return;
            }
            
            var value =obj.getElementsByTagName('input')[0].value;
            var txt =obj.getElementsByTagName('span')[0].innerHTML;
            
                
            //这里关闭不会导致FireFox下回发，主要针对弹出树
            if( window.parent.document.getElementById('panelTree') != null )
            {
                window.parent.document.getElementById('panelTree').style.display='none';
            }
             
            window.parent.<%=CallBack%>(value,txt);
                
           });
           
       });
    </script>
</head>
<body style="margin-left:0px;margin-top:0px;font-size:12px;background:white">
    <form id="form1" runat="server">
    
         <asp:TreeView ID="TreeView1" runat="server" ShowLines="True" 
             CssClass="FinaceTypeTree"  ></asp:TreeView>

          <!-- onselectednodechanged="TreeView1_SelectedNodeChanged" -->  
        
    </form>
</body>
</html>
